﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace Freshome.d
{
    [ServiceContract(Namespace = "Freshome")]
    public interface IMultint
    {
        //
        // Majoraw operations
        //
        [OperationContract]
        List<b.Majoraw> GetMajoraws(bool usedOnly);
        [OperationContract]
        Dictionary<short, string> SaveMajoraws(b.Majoraw[] entities);
        [OperationContract]
        bool DeleMajoraw(short mid);
        //
        // Pairaw operations
        //
        [OperationContract]
        List<b.Pairaw> GetPairaws(short mid);
        [OperationContract]
        Dictionary<short, string> SavePairaws(b.Pairaw[] entities);
        [OperationContract]
        bool DelePairaw(short mid);
        //
        // Minoraw operations
        //
        [OperationContract]
        List<b.Minoraw> GetMinoraws(bool usedOnly);
        [OperationContract]
        Dictionary<short, string> SaveMinoraws(b.Minoraw[] entities);
        [OperationContract]
        bool DeleMinoraw(short mid);
        //
        // Healthold operations
        //
        [OperationContract]
        List<b.Healthold> GetHealtholds(bool withChildren);
        [OperationContract]
        Dictionary<short, string> SaveHealtholds(b.Healthold[] entities);
        [OperationContract]
        bool DeleHealthold(short mid);
        [OperationContract]
        Dictionary<short, string> ShortMajoraws();
        //
        // Rawithealth operations
        //
        [OperationContract]
        Dictionary<short, string> SaveRawithealthes(b.Rawithealth[] entities);
        [OperationContract]
        bool DeleRawithealth(short mid);
        //
        // Recipe operations
        //
        [OperationContract]
        b.Recipe GetRecipe(short mid, bool withCousin);
        [OperationContract]
        List<b.Recipe> GetRecipes(b.RecipeCateg ct, bool withChildren);
        [OperationContract]
        Dictionary<short, string> SaveRecipes(b.Recipe[] entities);
        [OperationContract]
        bool DeleRecipe(short mid);
        //
        // Steplan operations
        //
        [OperationContract]
        Dictionary<short, string> SaveSteplans(b.Steplan[] entities);
        [OperationContract]
        bool DeleSteplan(short mid);
        //
        // Majorecipe operations
        //
        [OperationContract]
        Dictionary<short, string> SaveMajorecipes(b.Majorecipe[] entities);
        //
        // Minorecipe operations
        //
        [OperationContract]
        Dictionary<short, string> SaveMinorecipes(b.Minorecipe[] entities);
    }
}
